/*
 *@name: 工具库
 *@description:
 *@return:
 *@author: panlua
 *@date: 2019-07-05 16:50:56
*/
import * as moment from 'moment'

const DATE = {
  moment (data) {
    return moment(data)
  },
  /*
   *@name: 格林威治时间转换为普通时间
   *@param:{type} time：格林威治时间
   *@description:
   *@return:
   *@author: panlua
   *@date: 2019-07-05 17:13:08
  */
  GMTToStr (time) {
    return new Date(time)
  }
}

export default DATE
